<include file="Public/header" title="轮播图及广告列表" />

<div id="page-wrapper">
    
    <div class="row">
        <div class="col-md-6">
            <a href="{:U('lunbo/add')}" class="btn btn-success">添加首页轮播图</a>
        </div>
        <div class="col-md-6">

        </div>
    </div>
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>编号</th>
                <th>标题</th>
                <th>图片</th>
                <!--<th>Url</th>-->
                <!--<th>类型</th>-->
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <foreach name="model" item="v">
            <tr>
                <td>{$v.id}</td>
                <td>{$v.title}</td>
                <td><img src="{$v.img}" style="width:100px;height:60px; " alt=""></td>
                <!--<td>-->
                    <!--<if condition="$v.type eq 2">-->
                        <!--{$v.url}-->
                    <!--<else/>-->
                    <!--</if>-->

                <!--</td>-->
                <!--<td>-->
                    <!--&lt;!&ndash;<if condition="$v.type eq 1">&ndash;&gt;-->
                          <!--&lt;!&ndash;首页轮播图&ndash;&gt;-->
                        <!--&lt;!&ndash;<else/>APP开启-广告位&ndash;&gt;-->
                    <!--&lt;!&ndash;</if>&ndash;&gt;-->
                <!--</td>-->
                <td>

                    <a href="{:U('lunbo/update?id=')}{$v.id}">编辑</a> |
                    <a href="{:U('lunbo/delete?id=')}{$v.id}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');">删除|</a>
                    <if condition="$v.status eq 1">
                    <a href="{:U('lunbo/disuse?id=')}{$v.id}">禁用</a>
                    <else/><a href="{:U('lunbo/disuse?id=')}{$v.id}" style="color:red;">启用</a>
                    </if>



                </td>

            </tr>
        </foreach>
        </tbody>
    </table>
    {$page}
</div>

<include file="Public/footer" />